package com.daylightrobbery.server.packet.game.card;

import com.daylightrobbery.server.packet.type.DataPacket;
import com.daylightrobbery.server.packet.type.RoomDataPacket;
import org.springframework.stereotype.Component;

@Component
public class UseCardPacket implements RoomDataPacket {
    public static int type = 90002;
    public String uid;
    public int roomId;
    public String fromUid;
    public String dstUid;
    public String pathIndex;
    public int cardType;

    @Override
    public DataPacket process() {
        return this;
    }

    public String getUid() {
        return uid;
    }

    @Override
    public int getType() {
        return type;
    }

    @Override
    public int getRoomId() {
        return roomId;
    }

    public UseCardPacket setUid(String uid) {
        this.uid = uid;
        return this;
    }

    public String getFromUid() {
        return fromUid;
    }

    public UseCardPacket setFromUid(String fromUid) {
        this.fromUid = fromUid;
        return this;
    }

    public String getDstUid() {
        return dstUid;
    }

    public UseCardPacket setDstUid(String dstUid) {
        this.dstUid = dstUid;
        return this;
    }

    public String getPathIndex() {
        return pathIndex;
    }

    public UseCardPacket setPathIndex(String pathIndex) {
        this.pathIndex = pathIndex;
        return this;
    }

    public int getCardType() {
        return cardType;
    }

    public UseCardPacket setCardType(int cardType) {
        this.cardType = cardType;
        return this;
    }

    @Override
    public String toString() {
        return "UseCardPacket{" +
                "uid='" + uid + '\'' +
                ", roomId=" + roomId +
                ", fromUid='" + fromUid + '\'' +
                ", dstUid='" + dstUid + '\'' +
                ", pathIndex='" + pathIndex + '\'' +
                '}';
    }
}
